package stdio.costa.imoca.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Preview extends UuidEntity implements Serializable {
	
	private static final long serialVersionUID = 7599265467439901710L;

	@OneToOne(cascade = CascadeType.ALL)
	private Image front;
	
	@OneToOne(cascade = CascadeType.ALL)
	private Image back;
	
	public Preview() {
	}
	
	public Preview(Image front, Image back) {
		this.front = front;
		this.back = back;
	}

	public Image getFront() {
		return front;
	}

	public void setFront(Image front) {
		this.front = front;
	}

	public Image getBack() {
		return back;
	}

	public void setBack(Image back) {
		this.back = back;
	}
}
